#ifndef SIMUBOARD_CURTAINWIDGET_HPP
#define SIMUBOARD_CURTAINWIDGET_HPP

#include <FL/Fl_Box.H>

class Fl_PNG_Image;

class CurtainWidget : public Fl_Box
{
public:
    CurtainWidget(int x, int y, int w, int h, const char* label);
    void set_state(bool open);
    [[nodiscard]] bool state() const { return is_open_; }

    // 与 LEDWidget 一致，放到 public，便于共享与懒加载
    static Fl_PNG_Image* s_img_on;
    static Fl_PNG_Image* s_img_off;

private:
    bool is_open_ = false;
};

#endif // SIMUBOARD_CURTAINWIDGET_HPP
